package com.nanfangzhe.shirodemo.service.impl;

import com.nanfangzhe.shirodemo.entity.UPermission;
import com.nanfangzhe.shirodemo.entity.UUser;
import com.nanfangzhe.shirodemo.mapper.UPermissionMapper;
import com.nanfangzhe.shirodemo.service.UPermissionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author nanfangzhe
 * @since 2020-11-25
 */
@Service
public class UPermissionServiceImpl extends ServiceImpl<UPermissionMapper, UPermission> implements UPermissionService {
	@Autowired
	private UPermissionMapper dao;

	@Override
	public List<UPermission> getAll() {
		QueryWrapper<UPermission> wrapper = new QueryWrapper<UPermission>();
		return dao.selectList(wrapper);
	}
	
}
